Remove unnecessary mut
authormcarton <cartonmartin+git@gmail.com>
Fri, 15 Jan 2016 15:36:09 +0000 (16:36 +0100)
committermcarton <cartonmartin+git@gmail.com>
Sat, 16 Jan 2016 11:48:38 +0000 (12:48 +0100)
Fix all of Clippy’s unnecessary_mut_passed warnings.

src/cargo/ops/cargo_test.rs

index 28a19077fcd7c5575bbbf931df5ccfc2b2591c37..f4b23c03456e1bb60fa7f4f902a31d884225b440 100644 (file)
@@ -93,7 +93,7 @@ fn run_unit_tests(options: &TestOptions,
             shell.status("Running", cmd.to_string())
         }));
 
-        if let Err(e) = ExecEngine::exec(&mut ProcessEngine, cmd) {
+        if let Err(e) = ExecEngine::exec(&ProcessEngine, cmd) {
             errors.push(e);
             if !options.no_fail_fast {
                 break
@@ -166,7 +166,7 @@ fn run_doc_tests(options: &TestOptions,
             try!(config.shell().verbose(|shell| {
                 shell.status("Running", p.to_string())
             }));
-            if let Err(e) = ExecEngine::exec(&mut ProcessEngine, p) {
+            if let Err(e) = ExecEngine::exec(&ProcessEngine, p) {
                 errors.push(e);
                 if !options.no_fail_fast {
                     return Ok(errors);